<?php
if(isset($_COOKIE['benutzer'])){
    header("Location:startseite.php");
}
?>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Hairy Business</title>
        <link type="text/css" rel="stylesheet" href="main.css"/>
    </head>
    <body>
        <div id="container">
            <div id="content" style="text-align: center">
                <form action="set_cookie.php" method="post">
                    <h1>Anmeldung</h1>
                    <p>Benutzername</p>
                    <input type="text" name="benutzer"/>
                    <p>Passwort</p>
                    <input type="password" name="passwort"/>
                    <p><a href="passw_vergessen.php">Passwort vergessen</a></p>
                    <table align="center">
                        <tr>
                            <td>
                                <input type="submit" name="senden" value="Anmelden"/>
                            </td>
                            <td>
                                <input type="reset" name="cancel" value="Abbrechen"/>
                            </td>
                        </tr>
                    </table>
                </form>
            </div>
            <!--//Include the footer part-->
            <?php include("footer.php"); ?>
        </div>
    </body>
</html>